<?php
include './include/common.php';
//文章
$tianqizixun=Select_News(1,8);
$tianqichangshi=Select_News(2,8);
$page = intval ( $_GET ['page'] ) ? intval ( $_GET ['page'] ) : 1;
$pagesize = 20;
$rs = $db->getone ( "select count(id) as rscount from {$table_top}news" );
$recordcount = $rs ['rscount'];
unset ( $rs );
if ($recordcount) {
	$from = ($page - 1) * $pagesize;
	$sql = "select * from {$table_top}news order by id desc limit {$from},{$pagesize}";
	$newslist = $db->select ( $sql );
	$pagecount = ceil ( $recordcount / $pagesize );
	$multipage = multi ( $recordcount, $pagesize, $page, "/news/" . $conditions );
}
$pArea = Getone_pArea ( 0 ); //导航
$WeatherHot = Select_Hot ( 'hot',30 ); //最近关注城市
$daohang="<a href=\"/' title='天气预报查询\">天气预报查询</a> >>  <strong>天气预报资讯</strong>";
$title2 = "天气新闻列表";
$title = "天气新闻列表 - 天气啦(www.tianqi.la)";
$keywords="天气新闻,最新天气资讯,最新天气预报资讯.";
$description="天气啦(www.tianqi.la)免费为您提供天气预报最新资讯，天气预报新闻等服务.";
include template('newslist');
?>
